﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using BrnMall.Core;
using BrnMall.Web.Framework;

namespace BrnMall.Web.StoreAdmin.Models
{
    public class CardVerifyListModel
    {
        public PageModel Page { get; set; }
        public IList<CardVerifyModel> Items { get; set; }
    }

    public class CardVerifyModel
    {
        public int Id { get; set; }
        public int StoreId { get; set; }
        public PartUserInfo User { get; set; }
        /// <summary>
        /// 0:未知，1名片，2在职证明，3工牌，4身份证
        /// </summary>
        public int VerifyType { get; set; }
        public string VerifyImg { get; set; }
        public PartUserInfo VerifyUser { get; set; }
        public DateTime VerifyTime { get; set; }
        /// <summary>
        /// 认证状态0：未知，1：待认证，2：已认证，
        /// </summary>
        public int VerifyState { get; set; }
    }

    public class UserCardListModel
    {
        public PageModel Page { get; set; }
        public IList<UserCardModel> UserCards { get; set; }
    }
    /// <summary>
    /// 用户名片
    /// </summary>
    public class UserCardModel
    {
        /// <summary>
        /// 名片ID
        /// </summary>
        public int CId { get; set; }
        /// <summary>
        /// 店铺ID
        /// </summary>
        public int StoreId { get; set; }
        /// <summary>
        /// 用户信息
        /// </summary>
        public UserInfo User { get; set; }
        /// <summary>
        /// 名片编号
        /// </summary>
        public string CardCode { get; set; }
        /// <summary>
        /// 查看人数
        /// </summary>
        public int Views { get; set; }
        /// <summary>
        /// 点赞人数
        /// </summary>
        public int Praised { get; set; }
        /// <summary>
        /// 收藏人数
        /// </summary>
        public int Favorite { get; set; }
        public bool IsVerify { get; set; }
    }
}
